/**
 * 
 */
package com.vision.core.cm.util;

/**
 * @author Mark
 *
 */
public class NullUtils {
	
	public static double safeDouble(Double value) {
		return value == null ? 0 : value.doubleValue();
	}
	
	public static boolean isNullOrEmpty(String value) {
		return value == null || value.isEmpty();
	}
	
	public static String safeString(String value) {
		return value == null ? "" : value;
	}

}
